#!/bin/bash

if test -f "$1"; then 
	echo "$1 is an ordinary file."
elif [[ -d "$1" ]]; then
	echo "$1 is a directory."
else
	echo "error."
fi


if test -f "$1"
	then pr $1
elif test -d "$1"
	then (cd $1; pr *)
else
	echo "$1 is neither a file nor a directory."
fi
